package com.lcf.user.entity;

import lombok.Data;

@Data
public class Person {
    private String id;
    private String name;
    private Integer age = 0;
    private Double height;
    private String email;

    public Person() {
    }

    public Person(String id, String name, Integer age, Double height, String email) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.height = height;
        this.email = email;
    }

    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.getAge() + 1);
        person.setAge(-1);
        Integer i = -2;

        System.out.println(person.getAge() == i);
        System.out.println(person.getAge().equals(i));

    }
}
